<template>
	<view id="complaint">
		<view class="top">
			<view class="title">
				投诉类型
			</view>
		</view>
		<view class="main">
			<textarea placeholder="输入投诉详细说明" />
			<view class="upload">
				<image :src="imgurl" mode=""></image>
			</view>
			<button class="uploadBtn" @click="upload">+</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return{
			imgurl:'',
			baseURL:'https://slimmings.healthmach.com'
			};
		},
		methods:{
			upload(){
				uni.chooseImage({
					count: 6, //默认9
					sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图，默认二者都有
					sourceType: ['album'], //从相册选择
					success: function (res) {
					// console.log(JSON.stringify(res.tempFilePaths))
						const rempFilePaths = res.tempFilePaths;
						uni.uploadFile({
							url:''
						})
					}
				})
			}
		}
	}
</script>

<style lang="scss">
</style>
